//
//  MYGDetailHeaderView.swift
//  MYDoctor
//
//  Created by Denny on 2024/5/6.
//

import UIKit

class MYGDetailHeaderView: UIView {

 
    @IBOutlet weak var titleLB: UILabel!
    @IBOutlet weak var countLB: UILabel!
    @IBOutlet weak var authorLB: UILabel!
    
    var tapFilterCompletion:(()->Void)?
    var model: MYGPatientImages = MYGPatientImages(){
        didSet {
            self.titleLB.text = model.name
            self.authorLB.text = "来自于: \(model.form_doctor.name)"
            if model.image_count > 0 {
                self.countLB.text = "\(model.image_count)张"
            }
        }
    }
    @IBAction func tapFilter(_ sender: Any) {
        if let c = tapFilterCompletion {
            c()
        }
        
    }
    @IBAction func tapMessage(_ sender: Any) {
    }
    
}
